import Vue from 'vue';
import Router from 'vue-router';
Vue.use(Router);
export default new Router({
    mode: 'history',
    routes: [
        {
            path: '/',
            redirect: '/userlogin3'
        },
        {
            path: '/userlogin',
            component: resolve => require(['../components/public/userlogin.vue'], resolve)               //  默认首页
        },
        {
            path: '/userlogin2',
            component: resolve => require(['../components/public/userlogin2.vue'], resolve)               //  默认首页
        },
        {
            path: '/userlogin3',
            component: resolve => require(['../components/public/userlogin3.vue'], resolve)               //  默认首页
        },
        // /**********************************************  运营 后台   *******************************************************************************/
        {
            path: '/page',
            component: resolve => require(['../components/common/glHome.vue'], resolve),
            children: [
                {
                    path: '/',
                    component: resolve => require(['../components/page/statistics/posIndexStuSta.vue'], resolve)
                },
                {
                    path: '/posStuDetail',
                    component: resolve => require(['../components/page/DetailList/posStuDetail.vue'], resolve) //   pos状态列表
                },
                {
                    path: '/posStuSta',
                    component: resolve => require(['../components/page/statistics/posStuSta.vue'], resolve)     //  pos状态统计
                },
                {
                    path: '/paymentDetail',
                    component: resolve => require(['../components/page/DetailList/paymentDetail.vue'], resolve) //   支付异常列表
                },
                {
                    path: '/posIndexStuSta',
                    component: resolve => require(['../components/page/statistics/posIndexStuSta.vue'], resolve) //   pos状态列表
                },
                {
                    path: '/paymentSta',
                    component: resolve => require(['../components/page/statistics/paymentSta.vue'], resolve)     //  支付异常统计
                },
                {
                    path: '/retentionDetail',
                    component: resolve => require(['../components/page/DetailList/retentionDetail.vue'], resolve) //   滞留车辆列表
                },
                {
                    path: '/retentionSta',
                    component: resolve => require(['../components/page/statistics/retentionSta.vue'], resolve)     //  滞留车辆统计
                },
                {
                    path: '/settlementDetail',
                    component: resolve => require(['../components/page/DetailList/settlementDetail.vue'], resolve) //   结算列表
                },
                {
                    path: '/settlementSta',
                    component: resolve => require(['../components/page/statistics/settlementSta.vue'], resolve)     //  结算统计
                },
                {
                    path: '/transactionDetail',
                    component: resolve => require(['../components/page/DetailList/transactionDetail.vue'], resolve) //  交易列表
                },
                {
                    path: '/transactionSta',
                    component: resolve => require(['../components/page/statistics/transactionSta.vue'], resolve)     //  交易统计
                },
                {
                    path: '/passengerFlow',
                    component: resolve => require(['../components/page/DetailList/passengerFlow.vue'], resolve)     //  客流浪统计
                },
                {
                    path: '/onlineRate',
                    component: resolve => require(['../components/page/statistics/onlineRate.vue'], resolve)        //  POS在线率汇总
                },
                {
                    path: '/operation',
                    component: resolve => require(['../components/page/statistics/operation.vue'], resolve)         //  BUS运行情况汇总
                },
            ]
        },

    ]
});

 // export default router
